package com.managerApi.feign;

import com.managerApi.pojo.GoodsCategory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(name = "manager" ,url = "http://localhost:9091")
public interface managerFeign {
//    @RequestMapping("category/list")or
//    public List<GoodsCategory> selectCategyForView();

    @RequestMapping(value = "/goods/category/list")
    public String categoryList(Model model);
}
